package com.zl.rbac.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zl.rbac.entity.Permission;

import java.util.List;

public interface IPermissionService extends IBaseService<Permission>{
    
    /**
     * 
     * @Title: 加载整个项目的所有权限
     * @return void
     * @author: suke
     * @since: 2021/1/11 14:05
     */
    public  void  load() throws Exception;


    /**
     * 
     * @Title: 根据角色id查询权限
     * @param roleId: 角色id
     * @return java.util.List<com.zl.rbac.entity.Permission>
     * @author: suke
     * @since: 2021/1/12 11:03
     */
    public List<Permission> queryByRoleId(Integer roleId) throws Exception;
}
